/* Author: CLR */

import java.util.*;
import java.io.*;

class MemberListTester {

	public static void main(String[] args)throws FileNotFoundException {
//		MemberList memberList = new MemberList();
//		
//		System.out.println(memberList.loadAllObjectsFromFile("Members.txt"));
//		
		Member bjarni = new Member("Bjarni Winther Hansen", "01012000", "Elite", "Female", true, "Landevejen 1", "55443366");
//		memberList.saveObject("Members.txt", kurt);
//		
//		System.out.println(memberList.loadAllObjectsFromFile("Members.txt"));
//		Payment pay = new Payment();
//                MemberList memberList = new MemberList();
//                Team team = new Team();
//                ArrayList<Member> list3 = team.teamList("Members.xml", "JuniorMale");
//		ArrayList<Member> list = pay.loadAllNonPaid("Members.xml");
//                ArrayList<DataObject> list1 = memberList.loadAllObjectsFromFile("Members.xml");
//                ArrayList<Member> list2 = memberList.dataObjectToMember(list1);
//		System.out.println(list1);
//                System.out.println(list);
//                System.out.println(list2);
//                System.out.println(list3);
            DisciplinList dl = new DisciplinList();
            Disciplin disciplin = new Disciplin(bjarni, "08031986", "Butterfly");
            dl.saveObject("Disciplins.xml", disciplin);
            System.out.println(dl.loadAllObjectsFromFile("Disciplins.xml"));
	}


}